package com.fishery.customization.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.List;

@Document(value = "c_label")
@ApiModel(value = "标签")
public class Label implements Serializable {

	@Id
	@ApiModelProperty(value = "id")
	private String id;

	@ApiModelProperty(value = "角色")
	private String role;

	@ApiModelProperty(value = "基地类型")
	@Field(value = "base_type")
	private List<String> baseType;

	@Field(value = "base_id")
	@ApiModelProperty(value = "基地Id")
	private String baseId;

	@ApiModelProperty(value = "一级标签集合")
	private List<OneLevelLabel> labels;

	public Label() {
	}

	public Label(String role, String baseId) {
		this.role = role;
		this.baseId = baseId;
	}

	public Label(String role, List<String> baseType, String baseId, List<OneLevelLabel> labels) {
		this.role = role;
		this.baseType = baseType;
		this.baseId = baseId;
		this.labels = labels;
	}

	public List<String> getBaseType() {
		return baseType;
	}

	public void setBaseType(List<String> baseType) {
		this.baseType = baseType;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}

	public List<OneLevelLabel> getLabels() {
		return labels;
	}

	public void setLabels(List<OneLevelLabel> labels) {
		this.labels = labels;
	}
}
